package se.boliang.Q01;

public class BinaryTreeNode {

	protected int nodeValue; 
	protected BinaryTreeNode leftChildNode;
	protected BinaryTreeNode rightChildNode;

	public BinaryTreeNode(int nodeValue, BinaryTreeNode leftChildNode,
			BinaryTreeNode rightChildNode) {

		this.nodeValue = nodeValue; 
		this.leftChildNode = leftChildNode; 
		this.rightChildNode = rightChildNode; 
		
	}

	public int getNodeValue() {
		return nodeValue;
	}

	public void setNodeValue(int nodeValue) {
		this.nodeValue = nodeValue;
	}

	public BinaryTreeNode getLeftChildNode() {
		return leftChildNode;
	}

	public void setLeftChildNode(BinaryTreeNode leftChildNode) {
		this.leftChildNode = leftChildNode;
	}

	public BinaryTreeNode getRightChildNode() {
		return rightChildNode;
	}

	public void setRightChildNode(BinaryTreeNode rightChildNode) {
		this.rightChildNode = rightChildNode;
	}

}
